package leading;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;

public class TimerTest {
	public static void main(String[] args) {
		Timer tTimer = new Timer();
		TimerTaskTest tTimerTast = new TimerTaskTest();
		
		String sDate = "2011-12-16 16:41";
		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		try {
			Date date = sf.parse(sDate);
			System.out.println(date);
			tTimer.schedule(tTimerTast, date, 5000);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}
}
